package cn.seecoder.ai.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @author fanyanpeng
 * @date 2023/4/11 0:50
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserVO {

    private Integer id;


    @NotBlank(message = "用户名不为空")
    private String userName;


    @NotEmpty(message = "密码不为空")
    private String password;


    private String organization;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date registerTime;

}
